﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReturnRatio.aspx.cs" Inherits="Account_ReturnRatio" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <title>返奖比例</title>
     <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
              <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="RewardID,RewardName" OnRowEditing="gridList_RowEditing" OnRowCancelingEdit="gridList_RowCancelingEdit" OnRowUpdating="gridList_RowUpdating">
                <Columns>
                    <asp:TemplateField HeaderText="提成类型">
                       
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblRatio" Text='<%# Bind("RewardName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="提成比例（%）">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtRatio" runat="server" Style="width: 15%"  Text='<%# Bind("Ratio") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblRatio" Text='<%# Bind("Ratio") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                   
                    <asp:CommandField ShowEditButton="True" HeaderText="编辑 "  EditText="编缉" CancelText="取消" UpdateText="更新" />
                </Columns>
            </asp:GridView>
             <asp:Label runat="server" CssClass="txtWarn" ID="lblWarn"></asp:Label>
        </div>
    </form>
</body>
</html>
